﻿using System;
using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 查询解码端连接状态的应答
    /// </summary>
    /// <remarks>
    /// typedef struct 
    /// {
    ///    Int8 ipaddr[16]; //源IP地址
    ///    Int8 channel; //通道号
    ///    Int8 type; //0:video-connect  ,1:audio-connect  ,2:kvm-connect   
    /// }DEC_CONNECT_STATUS;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct DEC_CONNECT_STATUS
    {
        #region Fields

        /// <summary>
        /// 源IP地址
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
        public byte[] connectEnc;

        /// <summary>
        /// 通道号
        /// </summary>
        public byte channel;

        /// <summary>
        /// 0:video-connect  ,1:audio-connect  ,2:kvm-connect   
        /// </summary>
        public byte type;

        #endregion
    }
}
